package com.zhang.Decorator.example;

/**
 * @author ElloeStudy(Sifa Zhang)
 * @create 2022-03-09 23:19
 * To: 真常应物，真常得性，常清常静，常清静矣
 */
public class HighScoreDecorator extends Decorator{

    public HighScoreDecorator(SchoolReport sr) {
        super(sr);
    }
    // 汇报最高成绩
    private void reportHighScore(){
        System.out.println("这次考试语文最高是75，数学是78，自然是80");
    }

    @Override
    public void report() {
        this.reportHighScore();
        super.report();
    }
}
